package service

import (
	"gowork/studentGoKit/model"
)

type StudentServiceInf interface{
	InesrtSri(*model.Student)map[string]string

	DeleteSri(string)map[string]string

	UpdateSri(*model.Student)map[string]string

	QuerySri()[]*model.Student
}


type StudentSriImp struct{
	mst *model.Student
}

func (ssi *StudentSriImp)InesrtSri(s *model.Student)map[string]string{
	return ssi.mst.InesrtDao(s)
}

func (ssi *StudentSriImp)DeleteSri(name string)map[string]string{
	return ssi.mst.DeleteDao(name) 
}

func (ssi *StudentSriImp)UpdateSri(s *model.Student)map[string]string{
	return ssi.mst.UpdateDao(s)
}

func (ssi *StudentSriImp)QuerySri() []*model.Student{
	var d = model.Student{}
	ssi.mst = &d
	return ssi.mst.QueryDao()
}

